POV-Ray : Newsgroups : povray.unofficial.patches : Inverse Transformations patch : Re: Inverse Transformations patch Server Time
2 Sep 2024 06:16:52 EDT (-0400)
  Re: Inverse Transformations patch  
From: Warp
Date: 25 Apr 2000 10:23:59
Message: <3905aa7f@news.povray.org>
There's another problem. What about this:

box
{ <1,2,3>, <4,5,6>
  rotate x*30
  texture { Whatever }
  rotate y*45
}

  What will be the transformation got out of that?


  Btw: I have one idea (which has only little to do with this transformations
thing):

  In latex you can attach a label to most items, for example:

\section{Why povray is the best?} \label{First section}

  Then you can refer to that section by writing for example:

For more information, see section \ref{First section}.

  This will substitute the \ref-statement with the appropriate section number
(which may change when adding more section before that one).

  In povray this kind of labeling would just be a shortcut for first
#declaring the thing and then creating an instance of it. It would just
do both things at once.
  Then perhaps you could do something like (not necessarily with this syntax):

box \label{MyBox}
{ <1,2,3>, <4,5,6>
  transform \label{MyBoxTrans}
  { rotate x*30
  }
}

object { MyBox transform { MyBoxTrans inverse } }

  This would create two boxes. The first with transformations and the second
without.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.